/*
 *  GNUstepMacros.h
 *  Gomoku
 *
 *  Created by Adam Nohejl on Sat Feb 21 2004.
 *
 */

/* just to compile with Cocoa (included in the prefix) */

#define _(str)			NSLocalizedString((str),@"")
#define AUTORELEASE(a)	[(a) autorelease]
#define RELEASE(a)		[(a) release]

#define TEST_RELEASE(object)    ({ if (object) [object release]; })
#define ASSIGN(object,value)    ({\
	id __value = (id)(value); \
		id __object = (id)(object); \
			if (__value != __object) \
			{ \
				if (__value != nil) \
				{ \
					[__value retain]; \
				} \
				object = __value; \
					if (__object != nil) \
					{ \
						[__object release]; \
					} \
			} \
})
